﻿const Router = require("koa-router");

const categoryService = require("../services/categoryService");

const router = new Router();

router.get("/categories", categoryService.getCategories);
router.post("/categories", categoryService.addCategory);
router.delete("/categories/:categoryId", categoryService.deleteCategory);
router.put("/categories/:categoryId", categoryService.updateCategory);

module.exports = router;
